import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { BaseModel } from './base.model';
@Entity()
export class User extends BaseModel{

  @Column()
  @ApiProperty()
  userName: string;
  @Column()
  @ApiProperty()
  pwd: string;
  @Column()
  @ApiProperty()
  tel: string;
  @Column()
  @ApiProperty()
  email: string;
  @Column()
  @ApiProperty()
  nickName: string;
  @Column()
  @ApiProperty()
  avatarUrl: string;
  @Column()
  @ApiProperty({
    description: 'The sex of a user',
    type: Number,//属性类型
    default: 0,
  })
  sex: number; //0 男,1 女
}
